// 封装localstoreage
// 保存
export function localSet (value, key = 'userInfo') {
  window.localStorage.setItem(key, JSON.stringify(value))
}

// 获取
export function localGet (key = 'userInfo') {
  return JSON.parse(window.localStorage.getItem(key))
}

// 删除
export function localDel (key = 'userInfo') {
  return window.localStorage.removeItem(key)
}
